package com.choosefine.it.project.service.Impl;

import com.choosefine.it.project.dao.ProjectInfoListMapper;
import com.choosefine.it.project.model.vo.ProjectInfoListVO;
import com.choosefine.it.project.model.vo.ProjectInfoWithTeamIdVO;
import com.choosefine.it.project.service.ProjectInfoListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("projectInfoListService")
public class ProjectInfoListServiceImpl implements ProjectInfoListService {
	@Autowired
	ProjectInfoListMapper projectInfoListMapper;

	@Override
	public List<ProjectInfoListVO> getProjectInfoListByCompanyUserCode(String userCode) {

		return projectInfoListMapper.getProjectInfoListByCompanyUserCode(userCode);
	}

	@Override
	public List<ProjectInfoListVO> getListByManagerAndCompanyUserCode(Map<String, String> params) {

		return projectInfoListMapper.getListByManagerAndCompanyUserCode(params);
	}

	@Override
	public List<ProjectInfoWithTeamIdVO> getListByTeamAndCompanyUserCode(Map<String, String> params) {

		return projectInfoListMapper.getListByTeamAndCompanyUserCode(params);
	}

}
